/*
 * Project: jcerticles
 * Copyright(c) 2011 jcerticles
 * All rights reserved.
 *
 * $Revision $, last modified $Date $ by $Author $
 */
package com.quintilis31.home.core.content.repository;

import java.util.List;

import com.quintilis31.home.common.repository.content.Answer;
import com.quintilis31.home.common.repository.content.Content;
import com.quintilis31.home.common.repository.content.Question;

/**
 * TODO... Write Javadoc...
 * @author Jothi
 * @since  1.6
 */
public interface IContentDAO {
	
	/**
	 * Fetch a random question based on the technologyId
	 * @param technologyId
	 * @return
	 */
	Content getRandomQuestion(final long technologyId);
	
	/**
	 * Fetch all the answers for a given Question
	 * @param
	 * @return 
	 */
	List < Content > getAllAnswersForQuestion(final long questionId);
	
    /**
     * Fetch all the Questions for a given technology and sub technology Id
     * @param technologyId
     * @param subTechnologyId
     * @return
     */
	List < Question > getAllQuestionsForExam(final long technologyId, final long subTechnologyId);
	
	/**
	 * Fetch all the Answers for a given questionId
	 * @param questionId
	 * @return
	 */
	List < Answer > getAllAnswersForQuestionId(final long questionId);
}
